﻿namespace Baby.VideoConvertor
{
    public class FLVTag
    {
        public FLVTag()
        {
            this.PreviousTagSize = new byte[4];
            this.DataLength = new byte[3];
            this.Time = new byte[3];
            this.streamsID = new byte[3];

        }
        /// <summary>
        /// 前一个Tag长度 4byte
        /// </summary>
        public byte[] PreviousTagSize { get; set; }
        /// <summary>
        ///  8 -- 音频tag 9 -- 视频tag 18 -- 脚本tag
        /// </summary>
        public byte Type { get; set; }

        /// <summary>
        /// 数据区长度 3byte
        /// </summary>
        public byte[] DataLength { get; set; }

        /// <summary>
        /// 时间戳 3byte 毫秒
        /// </summary>
        public byte[] Time { get; set; }

        /// <summary>
        /// 扩展时间戳 3byte 毫秒 作为时间戳的高位
        /// </summary>
        public byte TimeEx { get; set; }

        /// <summary>
        /// 一般为0 3byte
        /// </summary>
        public byte[] streamsID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public byte[] Data { get; set; }
    }
}
